.alert-danger {
    color: #a94442;
    font-weight: bold;
    background-color: #f2dede;
    border-color: #ebccd1;
}
.alert .alert-success {
    color: #3c763d;
    font-weight: bold;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}
.alert-info {
    color: #31708f;
    font-weight: bold;
    background-color: #d9edf7;
    border-color: #bce8f1;
}
.alert-warning {
    color: #8a6d3b;
    font-weight: bold;
    background-color: #fcf8e3;
    border-color: #faebcc;
}
.dt-input { width: 60px }
#dt-search-0 { width: 250px }
/* Dashboard Styles */
.dashboard-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2d3748;
    line-height: 1;
}

.stat-label {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.quick-action-card {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 15px rgba(76,175,80,0.3);
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76,175,80,0.4);
    color: white;
    text-decoration: none;
}

.recent-runs-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.run-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.run-item:hover {
    background-color: #f8fafc;
}

.run-item:last-child {
    border-bottom: none;
}

.run-date {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

.parks-badge {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.taunts-notification {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 10px;
    padding: 1rem;
    color: white;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.welcome-message {
    position: relative;
    z-index: 1;
}

.progress-ring {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    fill: transparent;
    stroke: #e2e8f0;
    stroke-width: 8;
}

.progress-ring-progress {
    fill: transparent;
    stroke: #4CAF50;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

/* Run Details Styles */
.run-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.run-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.content-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.parks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.park-item {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 10px rgba(76,175,80,0.3);
    transition: transform 0.2s ease;
}

.park-item:hover {
    transform: translateY(-2px);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(76,175,80,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76,175,80,0.4);
    color: white;
    text-decoration: none;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(238,90,36,0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238,90,36,0.4);
    color: white;
    text-decoration: none;
}

.share-section {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    text-decoration: none;
}

.share-btn.challenge { background: linear-gradient(45deg, #00b894, #00a085); }
.share-btn.copy { background: linear-gradient(45deg, #636e72, #2d3436); }
.share-btn.twitter { background: linear-gradient(45deg, #1da1f2, #0d8bd9); }
.share-btn.facebook { background: linear-gradient(45deg, #3b5998, #2d4373); }

.stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-weight: bold;
    font-size: 1.1rem;
}

.run-title {
    position: relative;
    z-index: 1;
}

/* Form Styles */
.form-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.form-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: #f9fafb;
    min-height: 120px;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.file-upload-container {
    position: relative;
    display: inline-block;
}

.file-upload-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(76,175,80,0.3);
    border: none;
}

.file-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76,175,80,0.4);
}

.file-name {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-grid.two-cols {
    grid-template-columns: 1fr 1fr;
}

.form-grid.full-width {
    grid-column: 1 / -1;
}

.hero-title {
    position: relative;
    z-index: 1;
}

.gpx-info {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* Navigation Styles */
.nav-dropdown {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
    margin-top: 0.5rem;
}

.nav-dropdown-item {
    padding: 0.75rem 1rem;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-dropdown-item:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
}

.nav-dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 0.5rem 0;
}

.nav-admin-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-admin-item {
    padding: 0.75rem 1rem;
    color: #dc2626;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-admin-item:hover {
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    color: white;
    text-decoration: none;
}

/* Dark mode navigation */
.dark .nav-dropdown {
    background: #2d3748;
    border-color: #4a5568;
}

.dark .nav-dropdown-item {
    color: #e2e8f0;
}

.dark .nav-dropdown-item:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.dark .nav-admin-item {
    color: #f56565;
}

.dark .nav-admin-item:hover {
    background: linear-gradient(45deg, #f56565, #e53e3e);
    color: white;
}

/* Responsive Styles */
@media (max-width: 640px) {
    .form-grid.two-cols {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .dashboard-hero,
    .run-hero,
    .form-hero {
        padding: 1.5rem;
    }
    
    .stats-row {
        gap: 1rem;
    }
    
    .share-buttons {
        gap: 0.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-logo {
        height: 2.5rem;
    }
    
    .nav-auth-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-auth-link {
        text-align: center;
        width: 100%;
    }
}